package com.jake.mongo.service;

import com.jake.mongo.vo.User;
import com.jake.mongo.vo.UserInfo;

import java.util.List;

public interface UserService {

    List<User> findAllUsers();

    List<User> findAllUserInfo();

    User findUserById(Integer uid);

    UserInfo findUserInfoById(Integer uid);

    List<UserInfo> findUserInfoByUsernameAndCname(String username, String cname);

    void createUser(User user);

    void updateUser(User user);

    void removeUserById(Integer uid);
}
